<template>
  <div>
    <el-breadcrumb
      separator-class="el-icon-arrow-right"
      style="padding-left: 10px; padding-bottom: 10px; font-size: 12px"
    >
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>系统管理</el-breadcrumb-item>
      <el-breadcrumb-item>用户管理</el-breadcrumb-item>
    </el-breadcrumb>
    <el-card class="box-card">
      <el-form
        :inline="true"
        :model="formInline"
        class="demo-form-inline"
        size="mini"
      >
        <el-form-item label="部门">
          <el-select v-model="formInline.city" placeholder="请选择">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="用户名">
          <el-input
            v-model="formInline.user"
            placeholder="请输入用户名"
          ></el-input>
        </el-form-item>
        <el-form-item label="真实姓名">
          <el-input v-model="formInline.user" placeholder="真实姓名"></el-input>
        </el-form-item>
        <el-form-item label="邮箱">
          <el-input
            v-model="formInline.email"
            placeholder="请输入邮箱"
          ></el-input>
        </el-form-item>
        <el-form-item style="marger-left: 10px">
          <el-button type="text" @click="onSubmit">查询</el-button>
          <el-button type="text">重置</el-button>
          <el-button type="text">添加</el-button>
          <el-button type="text">导出</el-button>
        </el-form-item>
      </el-form>
    </el-card>
  </div>
</template>
<script>
export default {
  name: "Users",
  data() {
    return {
      formInline: {
        user: "",
        region: "",
      },
      options: [
        {
          value: "选项1",
          label: "黄金糕",
        },
        {
          value: "选项2",
          label: "双皮奶",
        },
        {
          value: "选项3",
          label: "蚵仔煎",
        },
        {
          value: "选项4",
          label: "龙须面",
        },
        {
          value: "选项5",
          label: "北京烤鸭",
        },
      ],
    };
  },
  methods: {
    onSubmit() {
      console.log("submit!");
    },
  },
};
</script>
<style lang="less" scoped>
.box-card {
  width: 100%;
}
.demo-form-inline {
  width: 100%;
  float: left;
 
}
.el-form-item {
  display: flex;
  float: left;
}
</style>